package com.ryan.route.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "order-service")
@Component
public interface OrderClient {

    @GetMapping("/order/isBuyRoute/{routeId}/{memberId}")
    public Boolean isBuyRoute(@PathVariable("routeId") String routeId, @PathVariable("memberId") String memberId);

}
